package com.example.springbootlearn.security.controller;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SecurityController {

    @RequestMapping("/admin/test")
    public String admintest() {
        return "Hello admintest!";
    }

    @RequestMapping("/user/test")
    public String usertest() {
        return "Hello usertest!";
    }


    @RequestMapping("/guest/test")
    public String guesttest() {
        return "Hello guesttest!";
    }

    @RequestMapping("/hello")
    public String hello() {
        return "Hello!";
    }
}
